<#assign pojo=oneToManyPojo.getOne()>
<#assign many=oneToManyPojo.getMany()>
<#assign ones=oneToManyPojo.getOnes()>
<#assign module=oneToManyPojo.getModule()>
<#assign fields=pojo.getFilterdPojoFields()>
<#assign declarationName = pojo.importType(pojo.getDeclarationName())>
<#assign declarationNameFirstLetterLower = pojo.importType(pojo.getDeclarationNameFirstLetterLower())>
<#assign realPackageAndClassPath = "${pojo.getRealPackageAndClassPath()}">
<#assign masterid = pojo.getDeclarationNameFirstLetterLower()+"Id">
import React from 'react'
import PropTypes from 'prop-types'
import {Button, Affix} from 'antd'

function ${declarationName}SelectToolBar({on${declarationName}AddItem, on${declarationName}DeleteItem}) {
  return (
    <Button.Group>
      {<Button size="large" style={{marginLeft: 8}} type="ghost" onClick={on${declarationName}AddItem}>Add</Button>}
      {<Button size="large" style={{marginLeft: 8}} type="ghost" onClick={on${declarationName}DeleteItem}>Delete</Button>}
    </Button.Group>
  )
}

${declarationName}SelectToolBar.propTypes = {
  on${declarationName}AddItem: PropTypes.func,
  on${declarationName}DeleteItem: PropTypes.func,
}

export default ${declarationName}SelectToolBar
